import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.awt.Color;
/**
 * Write a description of class Letrero here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Letrero extends Actor
{
   private static final Color transparent = new Color(0,0,0,0);
    int Var = 0;
   public Letrero(String mensaje, int letrero){
      this.despliega(mensaje, letrero);
      
      }
      
   public void despliega(String mensaje, int letrero){
       if(letrero == 1)
           super.setImage(
           new GreenfootImage(mensaje, 20, java.awt.Color.BLACK,transparent));
        else if(letrero == 2)
           super.setImage(
           new GreenfootImage(mensaje, 20, java.awt.Color.BLACK,transparent ));
           else if(letrero == 3)
           super.setImage(
           new GreenfootImage(mensaje, 20, java.awt.Color.BLACK,transparent ));
       }  
       
    /**
     * Act - do whatever the Letrero wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
    public void act() 
    {   
        if(Var == 0){
        removeTouching(Letrero.class);
        Var += 1;
    }
    }    
}
